 

package com.zdkj.subway.rca.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.rca.dto.in.SwCkStationDailyReportQueryDTO;
import com.zdkj.subway.rca.entity.SwCkStationDailyReportAdjust;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;
import java.io.File;


/**
 * 报表调账-西安地铁收入日报表
 *
 * @author stw
 * @date 2020-10-30 15:43:30
 */
public interface SwCkStationDailyReportAdjustService extends IService<SwCkStationDailyReportAdjust> {
    /**
     * 生成调整表  --废弃
     * @param startDate
     * @param endDate
     * @return
     * @throws Exception
     */
	Boolean generate(String startDate,String endDate) throws Exception;
    /**
     * 查询调整表
     * @param dto
     * @return
     */
    List<SwCkStationDailyReportAdjust> listSwCkStationDailyReportAdjust(SwCkStationDailyReportQueryDTO dto);
    /**
     * 导出单个调整表
     * @param dto
     * @param response
     */
    void export(SwCkStationDailyReportQueryDTO dto, HttpServletResponse response);

    /**
     * 分页查询调整表
     * @param page
     * @param dto
     * @return
     */
    IPage<List<SwCkStationDailyReportAdjust>> listQuerySwCkStationDailyReportAdjust(Page page, SwCkStationDailyReportQueryDTO dto);

    /**
     * 按日期范围导出调整表
     * @param startDate
     * @param endDate
     * @param lineCodes
     * @param flag
     * @param response
     * @throws ParseException
     */
    void exportDate(String startDate, String endDate, String lineCodes,String flag,HttpServletResponse response) throws ParseException;
    /**
     * 按线路范围导出调整表
     * @param startDate
     * @param endDate
     * @param lineCodes
     * @param flag
     * @param response
     * @throws ParseException
     */
    void exportStation(String startDate, String endDate, String lineCodes,String flag,HttpServletResponse response) throws ParseException;
    /**
     * 调整表导入保存
     * @param file
     * @return
     * @throws Exception
     */
	Boolean saveBatchWithExcel(final File file) throws Exception;
}
